package com.ruoyi.project.domain.dto;

import com.ruoyi.project.domain.entity.Kehu;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * (Kehu)表DTO层
 *
 * @author yanweichao
 * @since 2025-06-25 14:26:19
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class KehuDTO extends Kehu {

    private static final long serialVersionUID = 1L;

    private String keyword;

    public boolean isNew() {
        return this.getId() == null;
    }
}
